#include <stdio.h>

int maxx(int a, int b) {
    return a > b ? a : b;
}
int minn(int a, int b) {
    return a < b ? a : b;
}
int main() {
    int one, two, three;
    int max, min;

    // 提示用户输入三个数
    printf("请输入三个整数：\n");
    scanf("%d %d %d", &one, &two, &three);

    // max = maxx(one, maxx(two, three));
    // min = minn(one, minn(two, three));

    // 计算最大值和最小值
    max = one > two ? (one > three ? one : three) : (two > three ? two : three);
    min = one < two ? (one < three ? one : three) : (two < three ? two : three);

    // 输出结果
    printf("最大数是：%d\n", max);
    printf("最小数是：%d\n", min);

    return 0;
}
